package cn.francis.chatplatform.modules.session.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 张俊辉
 */

@Data
@JsonPropertyOrder({"test", "password"})
public class TestVO {

    @Pattern(regexp = "[NY]", message = "请输入N或Y")
    private String test;

    private String password;
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    private LocalDateTime startTime;
}
